package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:23
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysMessage implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long parentId;

    /**
     * Attribute parentId Be Seted Falg
     */
    private boolean parentIdSetted = false;

    /**
    * Attribute parentId is Null Falg
    */
    private boolean parentIdNull = false;
    private long senderId;

    /**
     * Attribute senderId Be Seted Falg
     */
    private boolean senderIdSetted = false;

    /**
    * Attribute senderId is Null Falg
    */
    private boolean senderIdNull = false;
    private String title;

    /**
     * Attribute title Be Seted Falg
     */
    private boolean titleSetted = false;

    /**
    * Attribute title is Null Falg
    */
    private boolean titleNull = false;
    private String content;

    /**
     * Attribute content Be Seted Falg
     */
    private boolean contentSetted = false;

    /**
    * Attribute content is Null Falg
    */
    private boolean contentNull = false;
    private String priority;

    /**
     * Attribute priority Be Seted Falg
     */
    private boolean prioritySetted = false;

    /**
    * Attribute priority is Null Falg
    */
    private boolean priorityNull = false;
    private java.util.Date sendTime;

    /**
     * Attribute sendTime Be Seted Falg
     */
    private boolean sendTimeSetted = false;

    /**
    * Attribute sendTime is Null Falg
    */
    private boolean sendTimeNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String senderName;

    /**
     * Attribute senderName Be Seted Falg
     */
    private boolean senderNameSetted = false;

    /**
    * Attribute senderName is Null Falg
    */
    private boolean senderNameNull = false;
    private String senderAccount;

    /**
     * Attribute senderAccount Be Seted Falg
     */
    private boolean senderAccountSetted = false;

    /**
    * Attribute senderAccount is Null Falg
    */
    private boolean senderAccountNull = false;

    public SysMessage() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get parentId
         *
         * @return long
         */
    final public long getParentId() {
        return parentId;
    }

    /**
     * Set parentId
     *
     * @param long
     */
    final public void setParentId(long parentId) {
        this.parentId = parentId;

        this.parentIdSetted = true;

        this.setParentIdNull(false);
    }

    /**
     * Get parentId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isParentIdSetted() {
        return this.parentIdSetted;
    }

    /**
     * Set parentId Null
     *
     */
    final public void setParentIdNull() {
        this.parentIdNull = true;
    }

    final public void setParentIdNull(boolean aNullFlag) {
        this.parentIdNull = aNullFlag;
    }

    final public boolean isParentIdNull() {
        return this.parentIdNull;
    }

    /**
         * Get senderId
         *
         * @return long
         */
    final public long getSenderId() {
        return senderId;
    }

    /**
     * Set senderId
     *
     * @param long
     */
    final public void setSenderId(long senderId) {
        this.senderId = senderId;

        this.senderIdSetted = true;

        this.setSenderIdNull(false);
    }

    /**
     * Get senderId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSenderIdSetted() {
        return this.senderIdSetted;
    }

    /**
     * Set senderId Null
     *
     */
    final public void setSenderIdNull() {
        this.senderIdNull = true;
    }

    final public void setSenderIdNull(boolean aNullFlag) {
        this.senderIdNull = aNullFlag;
    }

    final public boolean isSenderIdNull() {
        return this.senderIdNull;
    }

    /**
         * Get title
         *
         * @return String
         */
    final public String getTitle() {
        if (isTitleNull()) {
            return null;
        } else {
            return StringUtils.trim(title);
        }
    }

    /**
     * Set title
     *
     * @param String
     */
    final public void setTitle(String title) {
        this.title = StringUtils.trim(title);

        this.titleSetted = true;

        this.setTitleNull(this.title == null);
    }

    /**
     * Get title Has Been Setted
     *
     * @return boolean
     */
    final public boolean isTitleSetted() {
        return this.titleSetted;
    }

    /**
     * Set title Null
     *
     */
    final public void setTitleNull() {
        this.titleNull = true;
    }

    final public void setTitleNull(boolean aNullFlag) {
        this.titleNull = aNullFlag;
    }

    final public boolean isTitleNull() {
        return this.titleNull;
    }

    /**
         * Get content
         *
         * @return String
         */
    final public String getContent() {
        if (isContentNull()) {
            return null;
        } else {
            return StringUtils.trim(content);
        }
    }

    /**
     * Set content
     *
     * @param String
     */
    final public void setContent(String content) {
        this.content = StringUtils.trim(content);

        this.contentSetted = true;

        this.setContentNull(this.content == null);
    }

    /**
     * Get content Has Been Setted
     *
     * @return boolean
     */
    final public boolean isContentSetted() {
        return this.contentSetted;
    }

    /**
     * Set content Null
     *
     */
    final public void setContentNull() {
        this.contentNull = true;
    }

    final public void setContentNull(boolean aNullFlag) {
        this.contentNull = aNullFlag;
    }

    final public boolean isContentNull() {
        return this.contentNull;
    }

    /**
         * Get priority
         *
         * @return String
         */
    final public String getPriority() {
        if (isPriorityNull()) {
            return null;
        } else {
            return StringUtils.trim(priority);
        }
    }

    /**
     * Set priority
     *
     * @param String
     */
    final public void setPriority(String priority) {
        this.priority = StringUtils.trim(priority);

        this.prioritySetted = true;

        this.setPriorityNull(this.priority == null);
    }

    /**
     * Get priority Has Been Setted
     *
     * @return boolean
     */
    final public boolean isPrioritySetted() {
        return this.prioritySetted;
    }

    /**
     * Set priority Null
     *
     */
    final public void setPriorityNull() {
        this.priorityNull = true;
    }

    final public void setPriorityNull(boolean aNullFlag) {
        this.priorityNull = aNullFlag;
    }

    final public boolean isPriorityNull() {
        return this.priorityNull;
    }

    /**
         * Get sendTime
         *
         * @return java.util.Date
         */
    final public java.util.Date getSendTime() {
        return sendTime;
    }

    /**
     * Set sendTime
     *
     * @param java.util.Date
     */
    final public void setSendTime(java.util.Date sendTime) {
        this.sendTime = sendTime;

        this.sendTimeSetted = true;

        this.setSendTimeNull(this.sendTime == null);
    }

    /**
     * Get sendTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSendTimeSetted() {
        return this.sendTimeSetted;
    }

    /**
     * Set sendTime Null
     *
     */
    final public void setSendTimeNull() {
        this.sendTimeNull = true;
    }

    final public void setSendTimeNull(boolean aNullFlag) {
        this.sendTimeNull = aNullFlag;
    }

    final public boolean isSendTimeNull() {
        return this.sendTimeNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get senderName
         *
         * @return String
         */
    final public String getSenderName() {
        if (isSenderNameNull()) {
            return null;
        } else {
            return StringUtils.trim(senderName);
        }
    }

    /**
     * Set senderName
     *
     * @param String
     */
    final public void setSenderName(String senderName) {
        this.senderName = StringUtils.trim(senderName);

        this.senderNameSetted = true;

        this.setSenderNameNull(this.senderName == null);
    }

    /**
     * Get senderName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSenderNameSetted() {
        return this.senderNameSetted;
    }

    /**
     * Set senderName Null
     *
     */
    final public void setSenderNameNull() {
        this.senderNameNull = true;
    }

    final public void setSenderNameNull(boolean aNullFlag) {
        this.senderNameNull = aNullFlag;
    }

    final public boolean isSenderNameNull() {
        return this.senderNameNull;
    }

    /**
         * Get senderAccount
         *
         * @return String
         */
    final public String getSenderAccount() {
        if (isSenderAccountNull()) {
            return null;
        } else {
            return StringUtils.trim(senderAccount);
        }
    }

    /**
     * Set senderAccount
     *
     * @param String
     */
    final public void setSenderAccount(String senderAccount) {
        this.senderAccount = StringUtils.trim(senderAccount);

        this.senderAccountSetted = true;

        this.setSenderAccountNull(this.senderAccount == null);
    }

    /**
     * Get senderAccount Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSenderAccountSetted() {
        return this.senderAccountSetted;
    }

    /**
     * Set senderAccount Null
     *
     */
    final public void setSenderAccountNull() {
        this.senderAccountNull = true;
    }

    final public void setSenderAccountNull(boolean aNullFlag) {
        this.senderAccountNull = aNullFlag;
    }

    final public boolean isSenderAccountNull() {
        return this.senderAccountNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysMessage) == false) {
            return false;
        }

        SysMessage other = (SysMessage) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("parentId=");
        buffer.append(this.parentId);

        buffer.append("senderId=");
        buffer.append(this.senderId);

        buffer.append("title=");
        buffer.append(this.title);

        buffer.append("content=");
        buffer.append(this.content);

        buffer.append("priority=");
        buffer.append(this.priority);

        buffer.append("sendTime=");
        buffer.append(this.sendTime);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("senderName=");
        buffer.append(this.senderName);

        buffer.append("senderAccount=");
        buffer.append(this.senderAccount);

        buffer.append("]");

        return buffer.toString();
    }
}
